package com.bjfu.eduservice.service;

import com.bjfu.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bjfu.eduservice.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Guli
 * @since 2020-07-04
 */
public interface EduChapterService extends IService<EduChapter> {
    // 根据课程Id获取章节
    List<ChapterVo> getChapterListByCourseId(String courseId);

    // 删除章节以及里面的小节
    void deleteChapter(String chapterId);

    // 根据课程Id删除章节
    void removeByCourseId(String courseId);

}
